<div class="board_read">
	<!-- READ HEADER -->
	<div class="read_header">
		<h1><a href="{$oDocument->getPermanentUrl()}">{$oDocument->getTitle()}</a></h1>
		<a cond="$oDocument->getHomepageUrl()" href="{$oDocument->getHomepageUrl()}" class="author">{$oDocument->getNickName()}</a>
		<strong cond="!$oDocument->getHomepageUrl()" class="author">{$oDocument->getNickName()}</strong>
		<p class="sum">
			<span class="read">{$lang->readed_count} <span class="num">{$oDocument->get('readed_count')}</span></span>
			<span class="vote">{$lang->voted_count} <span class="num">{$oDocument->get('voted_count')}</span></span>
			<span class="time">{$oDocument->getRegdate('Y.m.d H:i')}</span>
		</p>
	</div>
	<!-- /READ HEADER -->
	
	
	<div>
	<!--@if($oDocument->isExtraVarsExists() && (!$oDocument->isSecret() || $oDocument->isGranted()) )-->
    <!--@foreach($oDocument->getExtraVars() as $key => $val)-->
        <!--@if($val->name=="상품명")-->
        {@
			$product_name = $val->getValueHTML();
        }
        <!--@elseif($val->name=="가격")-->
        {@
			$product_price = $val->getValueHTML();
        }
        <!--@elseif($val->name=="수량")-->
        {@
			$product_amount = $val->getValueHTML();
        }
        <!--@elseif($val->name=="내번호")-->
        {@
			$callback = $val->getValueHTML();
        }
        <!--@elseif($val->name=="가게번호")-->
        {@
			$recipient = $val->getValueHTML();
        }
        <!--@elseif($val->name=="상호")-->
        {@
			$restaurant = $val->getValueHTML();
        }
        <!--@elseif($val->name=="상태")-->
        {@
			$status = $val->getValueHTML();
        }
        <!--@elseif($val->name=="주문번호")-->
        {@
			$order_no = $val->getValueHTML();
        }
        <!--@elseif($val->name=="총합")-->
        {@
			$sum_price = $val->getValueHTML();
        }
        <!--@elseif($val->name=="알림")-->
        {@
			$notification = $val->getValueHTML();
        }
        <!--@end-->
    <!--@end-->
	<!--@end-->
	</div>

	
	<!-- READ BODY -->
	<div class="read_body">
		{$oDocument->getContent(false)}
	</div>
	<!-- /READ BODY -->
	<!-- READ FOOTER -->
	<div class="read_footer">
		<div cond="$oDocument->hasUploadedFiles()" class="fileList">
			<button type="button" class="toggleFile" onclick="jQuery(this).next('ul.files').toggle();">{$lang->uploaded_file} ({$oDocument->get('uploaded_count')})</button>
			<ul class="files">
				<li loop="$oDocument->getUploadedFiles()=>$key,$file"><a href="{getUrl('')}{$file->download_url}">{$file->source_filename} <span class="fileSize">[File Size:{FileHandler::filesize($file->file_size)}/Download:{number_format($file->download_count)}]</span></a></li>
			</ul>
		</div>
		<div class="btnArea">
			<span class="goList"><a href="#board_list" class="btn">{$lang->cmd_list}</a></span>
			<span class="goEdit">
				<a cond="$oDocument->isEditable()" class="btn" href="{getUrl('act','dispBoardWrite','document_srl',$oDocument->document_srl,'comment_srl','')}">{$lang->cmd_modify}</a>
				<a cond="$oDocument->isEditable()" class="btn" href="{getUrl('act','dispBoardDelete','document_srl',$oDocument->document_srl,'comment_srl','')}">{$lang->cmd_delete}</a>
			</span>
		</div>
	</div>
	<!-- /READ FOOTER -->
</div>
<include cond="$oDocument->allowTrackback()" target="_trackback.html" />
<include cond="$oDocument->allowComment()" target="_comment.html" />
<!-- WRITE COMMENT -->
<form cond="$grant->write_comment && $oDocument->isEnableComment()" action="./" method="post" onsubmit="return procFilter(this, insert_comment)" class="write_comment">
	<input type="hidden" name="mid" value="{$mid}" />
	<input type="hidden" name="document_srl" value="{$oDocument->document_srl}" />
	<input type="hidden" name="comment_srl" value="" />
	<textarea name="content" rows="5" cols="50"></textarea>
	<div class="write_author" cond="!$is_logged">
		<label for="userName">{$lang->writer}</label>
		<input type="text" name="nick_name" id="userName" class="iText userName" />
		<label for="userPw">{$lang->password}</label>
		<input type="password" name="password" id="userPw" class="iText userPw" />
		<label for="homePage">{$lang->homepage}</label>
		<input type="text" name="homepage" id="homePage" class="iText homePage" />
    </div>
	<div class="btnArea">
		<input type="submit" value="{$lang->cmd_comment_registration}" class="btn" />
	</div>
</form>
<!-- /WRITE COMMENT -->
